package com.cd.mc.service.impl;

import com.cd.mc.service.BeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

public class BeanServiceImpl implements BeanService {

    @Autowired
    private RestTemplate restTemplate;
    @Override
    public String getBeanName()
    {
        restTemplate.getForObject("http://localhost:8080/enroll/hello",String.class);
        return "beanServiceImpl";
    }
}
